
//
//  CPBaseVC.swift
//  ComponentUI
//
//  Created by wrs on 2018/7/18.
//  Copyright © 2018年 wrs. All rights reserved.
//

import UIKit

open class CPBaseVC: UIViewController {

    deinit {
#if DEBUG
        print("[Line \(#line)] ----------\(NSStringFromClass(self.classForCoder))  deinit---------")
#endif
    }
    
    open override func viewDidLoad() {
        super.viewDidLoad()

//        self.automaticallyAdjustsScrollViewInsets = false
//        self.edgesForExtendedLayout = UIRectEdge(rawValue: 0)
    }

   open override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    open override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        super.touchesBegan(touches, with: event)
        self.view.endEditing(true)
    }
    
    open override var shouldAutorotate: Bool {
        get {
            return false
        }
    }
    
    open override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
        get {
            return UIInterfaceOrientationMask.portrait
        }
    }
}
